<?php

/* 聊天记录 */
class ChatlogModel extends BaseModel
{
    var $table  = 'chatlog';
    var $prikey = 'logid';
    var $_name  = 'chatlog';
     var $_relation  = array(
        // 一个优惠券编号只能属于一种优惠券
        'belongs_to_member' => array(
            'model'         => 'member',
            'type'          => BELONGS_TO,
            'foreign_key'   => 'user_id',
            'reverse'       => 'has_chatlog',
        ),
    );

}

?>